package rpc.common;

import java.io.Serializable;

/**
 * URL存储
 */
public class MyURL implements Serializable {
    private final String hostname;
    private final Integer port;

    public MyURL(String hostname, Integer port) {
        this.hostname = hostname;
        this.port = port;
    }

    public String getHostname() {
        return hostname;
    }

    public Integer getPort() {
        return port;
    }
}
